package com.codingstyle.codingstylepoi.pojo;

import cn.afterturn.easypoi.excel.annotation.Excel;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.Date;

/**
 * @author chenjian
 * @Package
 * @Description:
 * @date 2018/12/12 22:05
 */
@Data
@NoArgsConstructor
@AllArgsConstructor
public class People {

    @Excel(name = "姓名", orderNum = "0", isImportField = "true_st")
    private String name;

    @Excel(name = "性别", replace = {"男_1", "女_2"}, suffix = "生", orderNum = "1", isImportField = "true_st")
    private String sex;

    @Excel(name = "生日", isImportField = "true_st", format = "yyyy-MM-dd", databaseFormat = "yyyyMMddHHmmss", exportFormat = "yyyy-MM-dd", orderNum = "2")
    private Date birthday;

}
